<!--
 * @Description:  
 * @Author: 亢超
 * @Date: 2024-11-14 20:43:09
 * @LastEditTime: 2024-11-18 19:24:48
-->
<template>
  <div>
    <el-card>
      <h1>
        <img src="" alt="">
        登录信息
      </h1>
      <el-table :data="tableData" style="width: 100%" border >
        <el-table-column prop="actor" label="用户" align="center">
        </el-table-column>
        <el-table-column prop="mobile" label="手机" align="center">
        </el-table-column>
        <el-table-column prop="create_time" label="登陆时间" align="center">
        </el-table-column>

      </el-table>
      <!-- <div class="page">
        <el-pagination background layout="prev, pager, next" :total="1000">
        </el-pagination>
      </div> -->
    </el-card>
  </div>
</template>

<script>
import { loginRecordApi } from "@/api/index.js";
export default {
  data () {
    return {
      tableData: [],
      pageParams: {
        pageS: 1,
        pageE: 10
      }
    }
  },
  created () {
    this.getLoginRecord()
  },
  methods: {
    async getLoginRecord () {
      let res = await loginRecordApi(this.pageParams)
      if (res.code == 200) {
        this.tableData = res.data
      }
    }
  }
}
</script>

<style lang="scss" scoped>
h1 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page {
  margin: 10px 0;
  display: flex;
  justify-content: flex-end;
}
</style>
